import request from "@/utils/request.js";

// 获取用户信息 
export function getWxUserInfo() {
    return request({
        url: "/xcx/qz/my/getWxUserInfo",
        method: "get",
    });
}

// 获取当前用户所在门店及附近门店 
export function getSiteStore() {
    return request({
        url: "/xcx/qz/my/getSiteStore ",
        method: "get",
    });
}

// 修改用户信息
export function exitUserInfo(data) {
    return request({
        url: "/xcx/qz/my/exitUserInfo",
        method: "put",
        data
    });
}

// 获取小程序码
export function getCode() {
    return request({
        url: "/xcx/qz/my/getCode  ",
        method: "get",
    });
}

// 获取投递/申请数量、收藏数量
export function getQuantitys() {
    return request({
        url: "/xcx/qz/my/getQuantitys",
        method: "get"
    });
}

// 获取我的申请列表
export function getApplyForList(params) {
    return request({
        url: "/xcx/qz/my/getApplyForList",
        method: "get",
        params
    });
}

// 取消申请
export function cancelApply(params) {
    return request({
        url: "/xcx/qz/my/cancelApply/" + `${params}`,
        method: "put"
    });
}

// 提交评价
export function evaluate(data) {
    return request({
        url: "/xcx/qz/my/evaluate",
        method: "put",
        data
    });
}

// 查看评价
export function getScoreInfo(params) {
    return request({
        url: "/xcx/qz/my/getScoreInfo/" + `${params}`,
        method: "put",
    });
}

// 获取我的收藏列表
export function getCollectList(params) {
    return request({
        url: "/xcx/qz/my/getCollectList",
        method: "get",
        params
    });
}

// 获取我看过的岗位
export function myLook(params) {
    return request({
        url: "/xcx/qz/my/myLook",
        method: "get",
        params
    });
}

// 获取看过我的企业
export function lookMe(params) {
    return request({
        url: "/xcx/qz/my/lookMe",
        method: "get",
        params
    });
}
// 企业主页
export function entHomePage(params) {
    return request({
        url: "/xcx/qz/my/entHomePage",
        method: "get",
        params
    });
}

// 取消收藏
export function cancelCollect(data) {
    return request({
        url: "/xcx/qz/home/collect",
        method: "put",
        headers: {
            "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8",
        },
        data
    });
}

// 获取积分/签到状态
export function getIntegralSign() {
    return request({
        url: "/xcx/qz/my/getIntegralSign",
        method: "get"
    });
}

// 获取积分任务列表
export function getIntegralTaskList() {
    return request({
        url: "/xcx/qz/my/getIntegralTaskList",
        method: "get",
        headers: {
            "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8",
        },
    });
}

// 签到
export function sign() {
    return request({
        url: "/xcx/qz/my/sign",
        method: "put"
    });
}

// 获取我的简历
export function getVitae() {
    return request({
        url: "/xcx/qz/my/getVitae",
        method: "get"
    });
}

// 保存我的简历
export function saveVitae(data) {
    return request({
        url: "/xcx/qz/my/saveVitae",
        method: "put",
        data
    });
}

// 获取积分商城列表
export function getProductInfoList(params) {
    return request({
        url: "/xcx/qz/my/getProductInfoList",
        params
    });
}

// 保存积分商城列表
export function addOrder(data) {
    return request({
        url: "/xcx/qz/my/addOrder",
        method: "post",
        data
    });
}

// 获取积分流水
export function getIntegralLog(params) {
    return request({
        url: "/xcx/qz/my/getIntegralLog",
        params
    });
}

// 钱包薪酬 --钱包
export function getWallet() {
    return request({
        url: "/xcx/qz/my/getWallet",
    });
}

// 获取全职/兼职薪酬流水 --钱包
export function getFullTimeLog(params) {
    return request({
        url: "/xcx/qz/my/getFullTimeLog",
        params
    });
}

// 获取零工流水/提现流水 --钱包
export function getPartTimeLog(params) {
    return request({
        url: "/xcx/qz/my/getPartTimeLog",
        params
    });
}

// 立即提现
export function withdrawDeposit() {
    return request({
        url: "/xcx/qz/my/withdrawDeposit ",
    });
}

// 获取求职者银行账户信息 --钱包
export function getAccountDetails() {
    return request({
        url: "/xcx/qz/my/getAccountDetails",
    });
}

// 修改求职者银行账户信息 --钱包
export function exitAccount(data) {
    return request({
        url: "/xcx/qz/my/exitAccount",
        method: 'post',
        data
    });
}

// 获取协议信息 关于我们、帮助文档、法律咨询
export function agreement(params) {
    return request({
        url: "/xcx/qz/my/agreement/" + params,
        method: 'get'
    });
}

// 申请门店
export function addStore(data) {
    return request({
        url: "/xcx/qz/my/addStore",
        method: 'post',
        data
    });
}

// 获取门店信息
export function getStoreInfo() {
    return request({
        url: "/xcx/qz/my/getStoreInfo",
        method: 'get'
    });
}

// 获取用户实名认证详细信息
export function getAuth() {
    return request({
        url: "/xcx/qz/my/getAuth",
        method: 'get'
    });
}

// 提交用户实名认证
export function addAuth(data) {
    return request({
        url: "/xcx/qz/my/addAuth",
        method: 'post',
        data
    });
}

// 退出登陆
export function logout() {
    return request({
        url: "/xcx/logout",
        method: 'post',
    });
}

// 切为招聘者
export function xcxQhLogin(params) {
    return request({
        url: "/xcx/xcxQhLogin?type=" + params,
        method: 'post',
    });
}

// 智能ai填写
export function getAiMessage(data) {
    return request({
        url: "/xcx/qz/my/getAiMessage",
        method: 'get',
        headers: {
            "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8",
        },
        data
    });
}

